﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200130F RID: 4879
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncTaskScRsp : IMessage<SyncTaskScRsp>, IMessage, IEquatable<SyncTaskScRsp>, IDeepCloneable<SyncTaskScRsp>, IBufferMessage
	{
		// Token: 0x17003D93 RID: 15763
		// (get) Token: 0x0600DA6C RID: 55916 RVA: 0x002495C8 File Offset: 0x002477C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncTaskScRsp> Parser
		{
			get
			{
				return SyncTaskScRsp._parser;
			}
		}

		// Token: 0x17003D94 RID: 15764
		// (get) Token: 0x0600DA6D RID: 55917 RVA: 0x002495CF File Offset: 0x002477CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncTaskScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D95 RID: 15765
		// (get) Token: 0x0600DA6E RID: 55918 RVA: 0x002495E1 File Offset: 0x002477E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncTaskScRsp.Descriptor;
			}
		}

		// Token: 0x0600DA6F RID: 55919 RVA: 0x002495E8 File Offset: 0x002477E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskScRsp()
		{
		}

		// Token: 0x0600DA70 RID: 55920 RVA: 0x002495FB File Offset: 0x002477FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskScRsp(SyncTaskScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.key_ = other.key_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DA71 RID: 55921 RVA: 0x0024962C File Offset: 0x0024782C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTaskScRsp Clone()
		{
			return new SyncTaskScRsp(this);
		}

		// Token: 0x17003D96 RID: 15766
		// (get) Token: 0x0600DA72 RID: 55922 RVA: 0x00249634 File Offset: 0x00247834
		// (set) Token: 0x0600DA73 RID: 55923 RVA: 0x0024963C File Offset: 0x0024783C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003D97 RID: 15767
		// (get) Token: 0x0600DA74 RID: 55924 RVA: 0x00249645 File Offset: 0x00247845
		// (set) Token: 0x0600DA75 RID: 55925 RVA: 0x0024964D File Offset: 0x0024784D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Key
		{
			get
			{
				return this.key_;
			}
			set
			{
				this.key_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600DA76 RID: 55926 RVA: 0x00249660 File Offset: 0x00247860
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncTaskScRsp);
		}

		// Token: 0x0600DA77 RID: 55927 RVA: 0x00249670 File Offset: 0x00247870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncTaskScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && !(this.Key != other.Key) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DA78 RID: 55928 RVA: 0x002496C0 File Offset: 0x002478C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Key.Length != 0)
			{
				num ^= this.Key.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DA79 RID: 55929 RVA: 0x0024971A File Offset: 0x0024791A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DA7A RID: 55930 RVA: 0x00249722 File Offset: 0x00247922
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DA7B RID: 55931 RVA: 0x0024972C File Offset: 0x0024792C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Key.Length != 0)
			{
				output.WriteRawTag(58);
				output.WriteString(this.Key);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DA7C RID: 55932 RVA: 0x0024978C File Offset: 0x0024798C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Key.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Key);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DA7D RID: 55933 RVA: 0x002497E8 File Offset: 0x002479E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncTaskScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Key.Length != 0)
			{
				this.Key = other.Key;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DA7E RID: 55934 RVA: 0x0024983D File Offset: 0x00247A3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DA7F RID: 55935 RVA: 0x00249848 File Offset: 0x00247A48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Key = input.ReadString();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040056D8 RID: 22232
		private static readonly MessageParser<SyncTaskScRsp> _parser = new MessageParser<SyncTaskScRsp>(() => new SyncTaskScRsp());

		// Token: 0x040056D9 RID: 22233
		private UnknownFieldSet _unknownFields;

		// Token: 0x040056DA RID: 22234
		public const int RetcodeFieldNumber = 5;

		// Token: 0x040056DB RID: 22235
		private uint retcode_;

		// Token: 0x040056DC RID: 22236
		public const int KeyFieldNumber = 7;

		// Token: 0x040056DD RID: 22237
		private string key_ = "";
	}
}
